﻿using System;
using System.Collections.Generic;


namespace Model
{
    /// <summary>
    /// 图书的基本信息类
    /// 作用：存储图书的基本信息
    /// 
    /// </summary>
    public partial class BookInfo
    {
        /// <summary>
        /// ID
        /// </summary>
        public int _Id { get; set; }

        /// <summary>
        /// 图书名称
        /// </summary>
        public string _name { get; set; }
        /// <summary>
        /// 图书类型
        /// </summary>
        public int _categoryType { get; set; }
        /// <summary>
        /// 图书作者
        /// </summary>
        public string _author { get; set; }
        /// <summary>
        /// 图书价格
        /// </summary>
        public double _money { get; set; }
        /// <summary>
        /// 图书编号
        /// </summary>
        public string _bookId { get; set; }

        /// <summary>
        /// 图书状态
        /// </summary>
        public int _state { get; set; }


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name"></param>
        /// <param name="categoryType"></param>
        /// <param name="author"></param>
        /// <param name="money"></param>
        /// <param name="bookId"></param>
        public BookInfo(string name, int categoryType, string author, double money, string bookId)
        {
            _name = name;
            _categoryType = categoryType;
            _author = author;
            _money = money;
            _bookId = bookId;
        }
        public BookInfo()
        {
            
        }
    }
}
